package api

import (
	"longmen/server/pkg/common/helper/util"
	"longmen/server/pkg/db/mysql/db_main"

	"github.com/labstack/echo/v4"
)

// @Summary DialogCallback
// @Description DialogCallback
// @Accept  json
// @Produce  json
// @Tags Config
// @Router /api/dialog/inc [POST]
func (base *Controller) DialogCallback(c echo.Context) error {
	//弹出回调记录曝光
	err := db_main.IncDialogShowTimes()

	if err != nil {
		return util.BuildFail(c, 1, "", err)
	}
	return util.BuildSuccess(c, "", "")
}
